from kivy.app import App
from kivy.clock import Clock
from kivy.core.text import LabelBase
from kivy.core.window import Window
from kivy.utils import get_color_from_hex


from kivy.uix.floatlayout import FloatLayout
from kivy.factory import Factory
from kivy.properties import ObjectProperty, StringProperty
from kivy.uix.popup import Popup

import os


class EpubFactoryApp(App):
	txt_url = StringProperty(None)
	def btn_start_press(self, url):
		print(url)
		Factory.MyPopup().open()





if __name__ == '__main__':
    Window.clearcolor = get_color_from_hex('#1f8dd6')
    LabelBase.register(name='Roboto',
                       fn_regular='NotoSansCJK-Regular.ttc',
                       fn_bold='NotoSansCJK-Regular.ttc')
    EpubFactoryApp().run()	